# coding:utf-8
# @Time    : 2025/2/8 15:00
# @Author  : liujingmao
# @FileName: first-ds.py

# Please install OpenAI SDK first: `pip3 install openai`

from openai import OpenAI

client = OpenAI(api_key="M3HAN90bEs1Qri_aisNn7Wvl1YksgpvLwW92jvjx-ws",
                base_url="https://ds.ai-galaxy.com:8001")

response = client.chat.completions.create(
    model="deepseek-chat",
    messages=[
        {"role": "system", "content": "You are a helpful assistant"},
        {"role": "user", "content": "Hello"},
    ],
    stream=False
)

print(response.choices[0].message.content)
